<div id="options">
    <?php if ($this->permission->check("insert", $this->minfocate->resCode)) { ?>
        <a href="<?php echo $this->url_add; ?>" class="btn" ><i class="icon-plus-sign"></i> Thêm mới</a>
        <?php }
    ?>

    <script type="text/javascript">$(document).ready(function() {
            $('.nav-tabs #projects').button('toggle');
        });
    </script> 
</div>

<?php
$header = array('STT','Tiêu đề');
$config = array(
    'header_icon' => 'icon-list',
    'header_title' => 'Quản lý '.@$tresource->RES_NAME,
    'ID' => '0',
    'showEdit' => false,
    'showDelete' => false,
);
if ($this->permission->check("delete", $this->minfocate->resCode))
    $config['showDelete'] = true;

if ($this->permission->check("update", $this->minfocate->resCode))
    $config['showEdit'] = true;

$data = array();
//Các project tham gia
$stt = 0;
foreach ($datas as $result) {

    $data[] = array($result->INFCATE_ID, ++$stt,  $result->INFCATE_TITLE);
}

echo $this->atheme->table_simple($header, $data, $config);
?>

